package CONTROLLERS;

import java.sql.Connection;
import java.sql.ResultSet;

import ModelEntityFW.UserEntitys;

public class UsersControllers extends BaseControllers<UserEntitys> {

    public UsersControllers(Connection objConnection, UserEntitys objSecurity) {
        super(objConnection, objSecurity);
    }

    @Override
    public ResultSet ExecOfGetElements() throws Exception {
        return m_objUserModels.GetElements();
    }

    @Override
    public ResultSet ExecOfGetElementById(UserEntitys obj) throws Exception {
        return m_objUserModels.GetElementById(obj);
    }

    @Override
    public void ExecOfCheckElement(UserEntitys obj) throws Exception {
        try {
            m_objUserModels.CheckElement(obj);
        } catch (Exception ex) {
            throw ex;
        }
    }

    @Override
    public boolean ExecOfInsertElement(UserEntitys obj) throws Exception {
        return m_objUserModels.InsertElement(obj);
    }

    @Override
    public boolean ExecOfUpdateElement(UserEntitys obj) throws Exception {
        return m_objUserModels.UpdateElement(obj);
    }

    @Override
    public boolean ExecOfDeleteElement(UserEntitys obj) throws Exception {
        return m_objUserModels.DeleteElement(obj);
    }

    @Override
    public ResultSet ExecOfFindElement() throws Exception {
        return null;
    }

}
